package org.demo.patten.composite;

/**
 * @author zhuj
 * @date 2025/3/22
 * @apiNote
 */
public class File implements FileSystemNode {
    private String name;

    public File(String name) {
        this.name = name;
    }

    @Override
    public void show() {
        System.out.println("文件:" + name);
    }
}
